<include file="header" />
<include file="share_header" />
<body>
<div class="wraper hasmenu">
    <div class="center-top tb-mode">
        <div class="tb-cell">
            <p class="text-32">{BEESCRM:$surplusTime}元</p>
            <p class="text-18">剩余金额</p>
        </div>
        <div class="tb-cell text-right">
            <a href="/index.php?g=Base&m=LaundrynewReCharging&a=ChargingRecharge&laundryId={BEESCRM:$laundryId}" class="charge-btn text-16">充值</a>
        </div>


    </div>

    <a href="{BEESCRM::U('/base/LaundrynewReCharging/chargingMoneyRecord',array('laundryId'=>$laundryId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-1"><span class="iconfont icon-chongdianjilu"></span></span>
                <span>充值记录</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>
    <a href="{BEESCRM::U('/base/LaundrynewReCharging/chargingRecord',array('laundryId'=>$laundryId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-2"><span class="iconfont icon-iconfonticon07"></span></span>
                <span>使用记录</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>
    <!--<a href="{BEESCRM::U('/base/LaundrynewReCharging/chargingPreferential',array('laundryId'=>$laundryId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-3"><span class="iconfont icon-youhuiquan"></span></span>
                <span>优惠券</span>
            </p>
            <p class="tb-cell text-right">
                <span class="iconfont icon-youhuiquan1 text-green"></span>
                <span class="iconfont icon-you"></span>
            </p>
        </div>
    </a>-->
    <a href="{BEESCRM::U('/base/LaundrynewReCharging/chargingHelpCenter',array('laundryId'=>$laundryId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-4"><span class="iconfont icon-bangzhu"></span></span>
                <span>使用帮助</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>

    <a href="#" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-6"><span class="iconfont icon-gengduo"></span></span>
                <span>敬请期待</span>
            </p>
            <!--<p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>-->
        </div>
    </a>
    <if condition="$laundryId eq 3">
        <!-- <a  id="refund" href="#" class="lists" style="text-align:center">申请余额退款</a> -->
    </if>
        
    <include file="nav"/>
</div>
<include file="commonJS"/>
<script>
    seajs.use(['$','layer'], function() {

    

        wx.ready(function(){
                $('.scan_code').on('click',function(){
                    wx.scanQRCode({
                        needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                        scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
                        success: function (res) {
                            var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
                        }
                    });
                })
        })    

            /*$(function(){
                
                $('#refund').on('click',function(){
                    if(confirm('申请退款后剩余时长将清0,进入待退款状态，是否继续？')){
                        $.ajax({
                            url:"{BEESCRM::U('Base/ReCharging/applyRefund',array('laundryId'=>$laundryId))}",
                            dataType:"json",
                            success:function(res){
                                alert(res.message);
                            }
                        })
                    }
                })
                
            })*/
})
   
</script>
</body>
</html>